package cn.zero.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "t_transaction")
public class Transaction extends BaseModelWithCreateTime {

	private static final long serialVersionUID = 8216574206378519795L;

	@Column(columnDefinition = "decimal(12, 2) default 0.00 comment '交易数量'")
	private double amount;
	@Column(columnDefinition = "varchar(255) comment '交易内容'")
	private String content;
	private Long walletId;

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Long getWalletId() {
		return walletId;
	}

	public void setWalletId(Long walletId) {
		this.walletId = walletId;
	}

}
